.class Lcom/xingbook/group/activity/ae;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/group/activity/GroupMinePostActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/ae;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v2, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/group/activity/ae;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/group/activity/GroupMinePostActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget v1, p1, Landroid/os/Message;->what:I

    sparse-switch v1, :sswitch_data_0

    :goto_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :sswitch_0
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/group/adapter/t;->b()I

    move-result v1

    if-nez v1, :cond_1

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->g(Lcom/xingbook/group/activity/GroupMinePostActivity;)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->h(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ui/ae;->a()V

    goto :goto_1

    :cond_1
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/group/adapter/t;->a()V

    goto :goto_1

    :sswitch_1
    iget v1, p1, Landroid/os/Message;->arg1:I

    if-ne v1, v2, :cond_2

    move v1, v2

    :goto_2
    if-eqz v1, :cond_3

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->d(Lcom/xingbook/group/activity/GroupMinePostActivity;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/xingbook/group/adapter/t;->a(Ljava/util/ArrayList;)V

    :goto_3
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->e(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->h(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/ui/ae;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/ae;->b()V

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->d(Lcom/xingbook/group/activity/GroupMinePostActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_4

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v2, v1}, Lcom/xingbook/group/adapter/t;->a(ZLjava/lang/String;)V

    goto :goto_1

    :cond_2
    move v1, v3

    goto :goto_2

    :cond_3
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->d(Lcom/xingbook/group/activity/GroupMinePostActivity;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/xingbook/group/adapter/t;->b(Ljava/util/ArrayList;)V

    goto :goto_3

    :cond_4
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v0

    const-string v1, "\u6682\u65e0\u66f4\u591a\u5185\u5bb9"

    invoke-virtual {v0, v3, v1}, Lcom/xingbook/group/adapter/t;->a(ZLjava/lang/String;)V

    goto :goto_1

    :sswitch_2
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/group/adapter/t;->b()I

    move-result v1

    if-nez v1, :cond_5

    const-string v1, "\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u540e\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    invoke-static {v0, v1}, Lcom/xingbook/group/activity/GroupMinePostActivity;->a(Lcom/xingbook/group/activity/GroupMinePostActivity;Ljava/lang/String;)V

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->h(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ui/ae;->b()V

    goto/16 :goto_1

    :cond_5
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v0

    const-string v1, "\u7f51\u7edc\u8fde\u63a5\u5931\u8d25"

    invoke-virtual {v0, v3, v1}, Lcom/xingbook/group/adapter/t;->a(ZLjava/lang/String;)V

    goto/16 :goto_1

    :sswitch_3
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/group/adapter/t;->b()I

    move-result v1

    if-nez v1, :cond_6

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u52a0\u8f7d\u5931\u8d25\uff1a"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ",\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/xingbook/group/activity/GroupMinePostActivity;->a(Lcom/xingbook/group/activity/GroupMinePostActivity;Ljava/lang/String;)V

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->h(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ui/ae;->b()V

    goto/16 :goto_1

    :cond_6
    invoke-static {v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u52a0\u8f7d\u5931\u8d25\uff1a"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v3, v1}, Lcom/xingbook/group/adapter/t;->a(ZLjava/lang/String;)V

    goto/16 :goto_1

    :sswitch_4
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    iget v2, p1, Landroid/os/Message;->arg1:I

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    nop

    :sswitch_data_0
    .sparse-switch
        -0x1 -> :sswitch_2
        0x1 -> :sswitch_0
        0x2 -> :sswitch_3
        0x9 -> :sswitch_4
        0xc8 -> :sswitch_1
    .end sparse-switch
.end method
